﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Examples.ViewModels
{
    public class Item
        : IComparable<Item>
    {
        public bool? IsTheBest { get; set; }

        public bool IsEnabled { get; set; }

        public string Name { get; set; }

        public int Value { get; set; }

        #region IComparable<Item> Members

        public int CompareTo(Item other)
        {
            return this.Name.CompareTo(other.Name);
        }

        #endregion
    }
}
